package com.usian.controller;

import com.usian.feign.ItemServiceFeign;
import com.usian.pojo.TbItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/backend/item")
public class ItemController {

    @Autowired
    private ItemServiceFeign itemServiceFeign;

    //查询商品基本信息
    @RequestMapping("selectItemInfo")
    public TbItem selectItemInfo(Long itemId){
        return itemServiceFeign.selectItemInfo(itemId);
    }

}
